{extend name="common/base" /}
{block name="title"}活动商品列表{/block}
{block name="main"}
<script src="/ad/js/g_add/g_list.js"></script>

 <!-- Navigation -->
  <div id="page-wrapper">
   <div class="col-md-12 graphs">
    <div class="xs">
  	 <h3>活动商品列表</h3>
  	  <div class="bs-example4">
	    <h5 >
            <a href="{:url('Goods/g_add')}">
                <span class="label label-success">添加商品</span>
            </a>
        </h5>
      <div class="table-responsive">
        <table class="table">
          <thead>
            <tr>
              <th>#</th>
              <th>活动标题</th>
              <th>活动价格</th>
              <th>活动时间</th>
              <th>商品套餐</th>
              <th>活动类型</th>
              <th>操作</th>
            </tr>
          </thead>
          <tbody>
            {volist name="act" id="at" key="k"}
            <tr>
              <th scope="row">{$k}</th>
              <td>{$at.goods_acitvity_title}</td>
              <td>{$at.goods_discounts}</td>
              <td>
                  {$at.goods_start|date='Y-m-d',###}---{$at.goods_end|date='Y-m-d',###}
              </td>
              <td>{$at['goods_group']?$at['goods_group']:'暂无套餐'}</td>
              <td>{$at['activity_type_id']?$at['activity_type_name']:'暂无活动'}</td>
              <td>
                <h5>
                    <a href="{:url('Goods/g_edit_activity',array('goods_id'=>$at['goods_id']))}">
                        <span class="label label-primary">编辑</span>
                    </a>&nbsp;
                    <a href="{:url('Goods/g_select',array('goods_id'=>$at['goods_id']))}">
                        <span class="label label-success">查看</span>
                    </a> &nbsp;
                    <a href="{:url('Goods/g_delete',array('id'=>$at['goods_id']))}"onclick="javascript:return del();">
                        <span class="label label-danger">删除</span>
                    </a>
                </h5>
          </td>
            </tr>
          {/volist}

          </tbody>
        </table>
        </div>
        <div style="text-align:center;">{$act -> render()}</div>
    </div>
  </div>

    {/block}


